
package com.insigma.business.qrcode.intell.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.insigma.business.qrcode.common.dto.BaseSearchRequest;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Getter
@Setter
public class CommonPolicySearchRequest extends BaseSearchRequest {

    private static final long  serialVersionUID = 1L;

    
    private String title;

    
    private String type;

    
    private String introduction;

    
    private String logo;

    
    private String attachment;

    
    private String keywords;

    
    private String content;

    
    private Integer commentNum;

    
    private Integer readNum;

    
    private Integer scorePeopleNum;

    
    private Integer scoreTotal;

    
    private Integer iLike;

    
    private Integer dislike;

    
    private Boolean published;

    
    private Boolean top;

    
    private Integer topWeight;

    
    private String policyLevel;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createDatetimeStart;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createDatetimeEnd;

    public CommonPolicySearchRequest(){
        super();
    }

    public CommonPolicySearchRequest(int pageNo, int pageSize) {
        super(pageNo, pageSize);
    }

    public CommonPolicySearchRequest(int pageNo, int pageSize, String sortKeyValueJoint) {
        super(pageNo, pageSize, sortKeyValueJoint);
    }

}
